#-*- coding:utf-8 -*-

from torrent import Parser
import time

if __name__ == "__main__":
    parser=Parser('YrDkam9ZsM.torrent')
    print parser.getStruct()
    print parser.getCreationDate()
    print 'creation date:'+time.strftime('%Y-%m-%d',time.localtime(parser.getCreationDate()))
    print 'comments:'+parser.getComments()
    print 'name:'+parser.getName()
    print 'encoding:'+parser.getEncoding()
    print 'created by:'+parser.getCreatedBy()
    print parser.getInfo()
    print parser.getInfoFiles()
    print parser.checkType()
    print parser.getSize()